﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.yy.ui.general {
    import com.fminutes.vinciBase.*;
    import flash.text.*;

    public class FontAdvProperties {

        private var antiAliasType:String;
        private var gridFitType:String;
        private var sharpness:Number;
        private var thickness:Number;
        private var embedFonts:Boolean;

        public function FontAdvProperties(_arg1:Object="nonuseEmbed", _arg2:String="advanced", _arg3:String="pixel", _arg4:Number=0, _arg5:Number=0){
            var _local6:Boolean;
            var _local7:String = App.appLang;
            switch (_arg1){
                case VinciFont.NONUSE_EMBED:
                    _local6 = false;
                    break;
                case VinciFont.USE_EMBED:
                    _local6 = true;
                    break;
                case VinciFont.LANG_EMBED:
                    if (VinciFont.INCLUDE_LANG_EMBED.indexOf(_local7) == -1){
                        _local6 = false;
                    } else {
                        _local6 = true;
                    };
                    break;
                default:
                    _local6 = (_arg1 == true);
            };
            this.embedFonts = _local6;
            this.antiAliasType = _arg2;
            this.gridFitType = _arg3;
            this.sharpness = _arg4;
            this.thickness = _arg5;
        }
        public function getAntiAliasType():String{
            return (this.antiAliasType);
        }
        public function changeAntiAliasType(_arg1:String):FontAdvProperties{
            return (new FontAdvProperties(this.embedFonts, _arg1, this.gridFitType, this.sharpness, this.thickness));
        }
        public function getGridFitType():String{
            return (this.gridFitType);
        }
        public function changeGridFitType(_arg1:String):FontAdvProperties{
            return (new FontAdvProperties(this.embedFonts, this.antiAliasType, _arg1, this.sharpness, this.thickness));
        }
        public function getSharpness():Number{
            return (this.sharpness);
        }
        public function changeSharpness(_arg1:Number):FontAdvProperties{
            return (new FontAdvProperties(this.embedFonts, this.antiAliasType, this.gridFitType, _arg1, this.thickness));
        }
        public function getThickness():Number{
            return (this.thickness);
        }
        public function changeThickness(_arg1:Number):FontAdvProperties{
            return (new FontAdvProperties(this.embedFonts, this.antiAliasType, this.gridFitType, this.sharpness, _arg1));
        }
        public function isEmbedFonts():Boolean{
            return (this.embedFonts);
        }
        public function changeEmbedFonts(_arg1:Boolean):FontAdvProperties{
            return (new FontAdvProperties(_arg1, this.antiAliasType, this.gridFitType, this.sharpness, this.thickness));
        }
        public function apply(_arg1:TextField):void{
            _arg1.embedFonts = this.embedFonts;
            _arg1.antiAliasType = this.getAntiAliasType();
            _arg1.gridFitType = this.getGridFitType();
            _arg1.sharpness = this.getSharpness();
            _arg1.thickness = this.getThickness();
        }
        public function toString():String{
            return (((((((((((("FontAdvProperties[" + "embedFonts : ") + this.embedFonts) + ", antiAliasType : ") + this.antiAliasType) + ", gridFitType : ") + this.gridFitType) + ", sharpness : ") + this.sharpness) + ", thickness : ") + this.thickness) + "]"));
        }

    }
}//package com.fminutes.vinciUI.general 
